package com.syher.dubbo.provider.service.annotation;

import com.alibaba.dubbo.config.annotation.Service;
import com.syher.dubbo.model.Role;
import com.syher.dubbo.service.IRoleService;

/**
 * Created by shenyuhang on 2018/3/7.
 */
@Service(version = "1.0.0")    //此处用的是dubbo的Service注解
public class RoleService implements IRoleService {
    @Override
    public String print(Role role) {
        return String.format("your role is [%s].", role.getName());
    }
}
